package com.intellagric.service.agritech;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.AgtResourceType;

/**
 * @Author: cwq
 * @Date: 2019/2/22 22:12
 * @Description:
 */
public interface ResourceTypeService {
    //增加
    ResponseMessage addResourceType(AgtResourceType resourceType);

    //删除
    ResponseMessage deleteResourceType(String id);

    //修改
    ResponseMessage editResourceType(AgtResourceType resourceType);

    //查询
    AgtResourceType getResourceTypeById(String id);
    LayuiDataGridResult getResourceTypeList();

    //通过父分类查询
    LayuiDataGridResult getResourceTypeByPid(String pId);
    //查询分类信息，并生成树形数据
    LayuiDataGridResult getResourceTypeTree();

    LayuiDataGridResult getResourceTypeTreeByPid(String pid);
}
